support: migrated to supportconfig.rc #1055
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
ALP will not support the deprecated scplugin.rc framework. This commit, then, migrates our support script to work with supportconfig.rc.
This patch has been originally contributed by Jason Record on the linked Bugzilla entry.
Fixes bsc#1216389
How to demo
NOTE: I have tested the following on a SLES15 SP4 machine. It would be extra dope if you could test it on other environments such as SLES12 LTSS.
The easiest route is to either install RMT on a machine, or re-use an existing installation. Thus, before any of this, ensure that
rmt-server
andsupportutils
are installed on your system. Then just copy thesupport/rmt
file from this PR into/usr/lib/supportconfig/plugins
and give it executable rights (as root):To ensure that the installation works, run
supportconfig
like so:There should be
prmt
(the 'p' is just a prefix for 'plugin'). You could try running just this plugin:On the generated tarball, make sure that there is a file named
output-rmt.txt
with the results from this run.Note that stuff like passwords have been blanked out by
supportconfig.rc
, this is to be expected. As a reference, this is the configuration as shown from my machine:Change Type
Please select the correct option.
Checklist
Please check off each item if the requirement is met.
rubocop
.MANUAL.md
file with any changes to the user experience.package/obs/rmt-server.changes
.Other Notes
Please use this space to provide notes or thoughts to the team, such as tips on how to review/demo your changes.